<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.shengruan.org/tags" prefix ="f"%> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
<script language="javascript">
window.onload = function()
{
	var myInter = setInterval("window.location.reload()",1000*10);
}
</script>
</head>
<body class="main">
<table class="container" cellpadding="0" cellspacing="0">

<tr class="dark" valign="middle">
<td>会员&nbsp; ${requestScope.onLineNum}&nbsp;人，匿名用户:${requestScope.visitorNum}人</td>
</tr>
<tr>
<td colspan="2">
<table class="list" align="center" cellspacing="1" cellpadding="0">
<tr class="heading">
<td width=6%>序号</td>
<td width=13%>用户名</td>
<td width=13%>IP</td>
<td width=18%>登录时间</td>
</tr>
<c:set var="sort" value="0"/>
<c:forEach var="user" items="${requestScope.userList}">
<c:set var="sort" value="${sort+1}"/>
<tr <c:if test="${sort%2==0}">class="odd"</c:if>>
   <td height="20">${sort}</td>
  <td height="20">${user.userName}</td>
  <td height="20">${user.loginIP}</td>
  <td>${f:format(user.loginTime)}</td>
</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
</body>
</html>

